package com.lihan.GetSeatInLib.Tools;

import org.springframework.core.codec.ByteArrayDecoder;
import org.springframework.core.codec.StringDecoder;
import org.springframework.stereotype.Component;
import org.springframework.util.DigestUtils;

@Component
public class MyEncoder{
	
	//直接使用Spring提供的MD5加密工具
	public String Encoder(String pwd) {
		return DigestUtils.md5DigestAsHex(pwd.getBytes());
	}
	
}
